Ext.namespace('VAS');

VAS.DynamicDetailPanel=Ext.extend(Ext.form.FormPanel,{
 initComponent : function() { 	
 	var _this=this;

	var _records=_this.record;

 	var _data=SyncAjax(this.url,_records);
 	
 	_this.columnWidth=_data.fieldSet.columnWidth;
 	_this.labelWidth=_data.fieldSet.labelWidth;
 	_this.fieldSetItems=_data.fieldSet.items;
 	
 	 
 	var config={
 		frame:true,
		items : [new Ext.ux.FieldSet({
								columnWidth : _this.columnWidth,
								labelWidth : _this.labelWidth,
								fieldSetItems :_this.fieldSetItems 
							})
			]	
 	}	
 	
 Ext.apply(this, config);
 Ext.apply(this.initialConfig, config);
 VAS.DynamicDetailPanel.superclass.initComponent.apply(this, arguments); 	
 }
});

Ext.reg('dynamicDetail-panel',VAS.DynamicDetailPanel);